package tt.dz.common;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

public final class DzConstants
{
  public static final String REDIS_PRE_PUBLIC_KEY = bizSysCode.MAIN_SERVER.value + "_redis_";
  public static final String DEFAULT_AREA_CODE = "0028";
  public static final Map<String, String> METHOD_SERVICE_MAP = new HashMap()
  {
    private static final long serialVersionUID = -2406904144787090023L;
    
  };
  static{
	  METHOD_SERVICE_MAP.  put("login", "rpcLoginService");
	  METHOD_SERVICE_MAP. put("getCheckCode", "rpcMsVerifyCodeService");
	  METHOD_SERVICE_MAP.  put("verifyCheckCode", "rpcMsVerifyCodeService");
	     METHOD_SERVICE_MAP. put("regist", "rpcUserRegisterService");
	     METHOD_SERVICE_MAP. put("updateUser", "rpcUserInfoService");
	     METHOD_SERVICE_MAP. put("queryCardState", "rpcUserInfoService");
	     METHOD_SERVICE_MAP. put("queryUserDetail", "rpcUserInfoService");
	     METHOD_SERVICE_MAP. put("queryUserDetailByCard", "rpcUserInfoService");
	     METHOD_SERVICE_MAP. put("userIsExists", "rpcUserInfoService");
	     METHOD_SERVICE_MAP. put("hearBeat", "rpcHeartBeatService");
	     METHOD_SERVICE_MAP. put("queryMerchant", "rpcMerchantService");
	     METHOD_SERVICE_MAP. put("queryRoleForSys", "rpcRoleService");
	     METHOD_SERVICE_MAP. put("loginForOper", "rpcOperLoginService");
	     METHOD_SERVICE_MAP. put("resetPwd", "rpcResetPwdService");
	     METHOD_SERVICE_MAP. put("trade", "rpcTradeService");
	     METHOD_SERVICE_MAP. put("modifyOperPassword", "rpcModifyOperPasswordService");
	     METHOD_SERVICE_MAP. put("modifyPwd", "rpcModifyPwdService");
	     METHOD_SERVICE_MAP. put("allotIdentityAccount", "rpcAllotIdentityAccountService");
	     METHOD_SERVICE_MAP. put("checkEntUserQuota", "rpcEntUserCheckQuotaService");
	     METHOD_SERVICE_MAP. put("activateOfflineCard", "rpcOfflineCardService");
	     METHOD_SERVICE_MAP. put("queryOperListBySys", "rpcQueryOperListService");
	     METHOD_SERVICE_MAP. put("addSysRole", "rpcRoleService");
	     METHOD_SERVICE_MAP. put("addSysUser", "rpcOperUserService");
	     METHOD_SERVICE_MAP. put("modifyOperRole", "rpcOperUserService");
	     METHOD_SERVICE_MAP. put("modifyOperInfo", "rpcOperUserService");
	     METHOD_SERVICE_MAP. put("queryCards", "rpcQueryCardsService");
	     METHOD_SERVICE_MAP. put("queryOfflineCard", "rpcOfflineCardService");
	     METHOD_SERVICE_MAP. put("queryIdentityCardByNo", "rpcIdentityCardService");
	     METHOD_SERVICE_MAP. put("rechargeOfflineAccount", "rpcOfflineCardService");
	     METHOD_SERVICE_MAP. put("cancelOfflineCard", "rpcOfflineCardService");
	     METHOD_SERVICE_MAP. put("forgotPassword", "rpcOperUserService");
	     METHOD_SERVICE_MAP. put("rechargeOnlineAccount", "rpcOnlineCardService");
	     METHOD_SERVICE_MAP. put("queryOnlineAccountBal", "rpcOnlineCardService");
	     METHOD_SERVICE_MAP. put("deductOnlineAccountBal", "rpcOnlineCardService");
	     METHOD_SERVICE_MAP. put("queryUserIdByCardNo", "rpcQueryUserIdByCardNoService");
	     METHOD_SERVICE_MAP. put("getRolesByUser", "rpcGetRolesByUser");
	     METHOD_SERVICE_MAP. put("getRolesByUser", "rpcGetRolesByUser");
	     METHOD_SERVICE_MAP. put("modifyPwdByVerifyCode", "rpcModifyPwdByVerifyCode");
	     METHOD_SERVICE_MAP. put("queryUser", "rpcUserInfoService");
	     METHOD_SERVICE_MAP. put("isBindThirdAccount", "rpcThirdAccountService");
	     METHOD_SERVICE_MAP. put("bindThirdAccount", "rpcThirdAccountService");
	     METHOD_SERVICE_MAP. put("offBindThirdAccount", "rpcThirdAccountService");
	     METHOD_SERVICE_MAP. put("queryBindThirdAccount", "rpcThirdAccountService");
	     METHOD_SERVICE_MAP. put("existThirdAccountBind", "rpcThirdAccountService");
	     METHOD_SERVICE_MAP. put("queryOperUserBaseInfo", "rpcOperUserService");
	     METHOD_SERVICE_MAP. put("listNextDistrictByDistrictCode", "rpcGetDistrictService");
	     METHOD_SERVICE_MAP. put("searchAllClassificationAndAssembly", "rpcGetDistrictService");
  }
  public static final int PASSWORD_SALT_LEN = 6;
  public static final String INDIVIDUAL_ACCOUNT_DETAIL_SEQ = "individual_account_detail_seq";
  public static final String SEQ_TRADE_NO = "seq_trade_no";
  public static final String SEQ_TRADE_SUB_NO = "seq_trade_sub_no";
  public static final String ENT_USER_AREA_CODE = "9999";
  public static final String FLOW_CONDITION_CODE_ONE = "1";
  public static final String FLOW_CONDITION_CODE_ZERO = "0";
  public static final String MERCH_LIABILITIES_SEQ = "seq_merch_liabilities_month";
  public static final String ORDER_SERVICE = "orderServer";
  
  public static enum sysJob
  {
    RECORD_DIVIDEND_JOB("recordDividendJob", "记录运营商账户分录job"),  TRAN_ACCOUNTING_MONITOR_JOB("tranAccountingMonitorJob", "记录账户分录监控job"),  DAILY_BATCH_JOB("dailyBatchJob", "日终批处理job"),  CHANGE_DAY_TASK("changeDayTask", "日切任务，包含计算账户的昨日余额和昨日发生额"),  DAILY_ACCOUNT_TASK("dailyAccountTask", "日记账任务"),  CALC_BALANCE_TASK("calcBalanceTask", "试算平衡"),  CHANNEL_CHECK_JOB("channelCheckJob", "渠道对账JOB"),  BATCHPAY_JOB("batchpayJob", "统付批次JOB"),  DEBTSTATISTICS_JOB("debtStatisticsJob", "月初统计上月应付账户数据");
    
    private String value = "";
    private String desc;
    
    private sysJob(String v, String desc)
    {
      this.value = v;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum realTime
  {
    NO(Integer.valueOf(0), "非实时到账"),  YES(Integer.valueOf(1), "实时到账");
    
    private Integer value = Integer.valueOf(0);
    private String desc;
    
    private realTime(Integer v, String desc)
    {
      this.value = v;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum accountingState
  {
    WAIT_FOR_ACCOUNTING(Integer.valueOf(0), "未记账"),  ACCOUTING(Integer.valueOf(1), "记账中"),  ACCOUNTED(Integer.valueOf(2), "记账完成");
    
    private Integer value = Integer.valueOf(0);
    private String desc;
    
    private accountingState(Integer v, String desc)
    {
      this.value = v;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum userType
  {
    PERSONAL_CUSTOMER(Integer.valueOf(0), "个人客户"),  ENTERPRISE_CUSTOMER(Integer.valueOf(1), "企业客户"),  UNIFIEDPAY_CUSTOMER(Integer.valueOf(2), "支持统付的个人客户"),  OFFLINE_CUSTOMER(Integer.valueOf(3), "离线卡"),  OUT_OFFLINE_CUSTOMER(Integer.valueOf(4), "外部离线卡"),  MERCHANT_CUSTOMER(Integer.valueOf(9), "运营商");
    
    private Integer value;
    private String desc;
    
    private userType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum receiveOrPay
  {
    RECEIVE(Integer.valueOf(1), "收款"),  PAY(Integer.valueOf(0), "付款");
    
    private Integer value;
    private String desc;
    
    private receiveOrPay(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum userLock
  {
    LOCK(Integer.valueOf(1), "1 是(锁定)"),  UNLOCK(Integer.valueOf(0), "0 否(未锁定) ");
    
    private Integer value;
    private String desc;
    
    private userLock(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public static userLock valueOf(int value)
    {
      for (userLock userLockEnum : userLock.values()) {
        if (userLockEnum.value.intValue() == value) {
          return userLockEnum;
        }
      }
      return null;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum userValid
  {
    VALID(Integer.valueOf(1), "1  有效"),  UNVALID(Integer.valueOf(0), "0  无效 ");
    
    private Integer value;
    private String desc;
    
    private userValid(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum isSelfMerchant
  {
    SELF(Integer.valueOf(1), "1  自营运营商"),  COPERATION(Integer.valueOf(0), "0  合作运营商");
    
    private Integer value;
    private String desc;
    
    private isSelfMerchant(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum isMerchant
  {
    MERCHANT(Integer.valueOf(1), "1  运营商"),  PERSONAL(Integer.valueOf(0), "0  个人");
    
    private Integer value;
    private String desc;
    
    private isMerchant(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum borrowOrLoanFlag
  {
    LOAN_FLAG(Integer.valueOf(1), "1 贷"),  BORROW_FLAG(Integer.valueOf(0), "0 借");
    
    private Integer value;
    private String desc;
    
    private borrowOrLoanFlag(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum isCostService
  {
    IS_COST_SERVICE(Integer.valueOf(1), "1 成本类服务"),  IS_NOT_COST_SERVICE(Integer.valueOf(0), "0 非成本类服务");
    
    private Integer value;
    private String desc;
    
    private isCostService(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum payState
  {
    PAY_SUCCESS(Integer.valueOf(1), "已支付"),  WAITING_FOR_PAYING(Integer.valueOf(2), "待支付"),  PAYING(Integer.valueOf(3), "支付中"),  PAY_FAILED(Integer.valueOf(4), "支付失败"),  PAY_TIMEOUT(Integer.valueOf(5), "支付超时"),  PAY_REFUSE(Integer.valueOf(6), "拒绝支付");
    
    private Integer value;
    private String desc;
    
    private payState(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
    
    public static payState getPayState(Integer value)
    {
      switch (value.intValue())
      {
      case 1: 
        return PAY_SUCCESS;
      case 2: 
        return WAITING_FOR_PAYING;
      case 3: 
        return PAYING;
      case 4: 
        return PAY_FAILED;
      case 5: 
        return PAY_TIMEOUT;
      case 6: 
        return PAY_REFUSE;
      }
      return null;
    }
  }
  
  public static enum balType
  {
    REAL_TIME(Integer.valueOf(1), "1 实时结算"),  PERIODIC_CLEARING(Integer.valueOf(0), "0 按周期结算");
    
    private Integer value;
    private String desc;
    
    private balType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static class Common
  {
    public static final int SUCCESS = 1;
    public static final int FAILED = 0;
    public static final Integer ZREO = Integer.valueOf(0);
    public static final Integer ONE = Integer.valueOf(1);
  }
  
  public static enum balanceFlag
  {
    INCREASE(Integer.valueOf(1), "余额增加"),  REDUCTION(Integer.valueOf(0), "余额减少");
    
    private Integer value;
    private String desc;
    
    private balanceFlag(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum jobStatus
  {
    RUNNING(Integer.valueOf(1), "运行中"),  WAITING(Integer.valueOf(0), "待运行"),  PAUSE(Integer.valueOf(2), "待运行");
    
    private Integer value;
    private String desc;
    
    private jobStatus(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum bizSysCode
  {
    MAIN_SERVER("101", "主服务器"),  ORDER_SERVER("102", "订单系统"),  OMS("103", "运营管理系统"),  DZ_APP("104", "电桩APP"),  DZ_WEIXIN("114", "电桩微信"),  HT_WEIXIN("124", "华体微信");
    
    private String value = "";
    private String desc;
    
    private bizSysCode(String v, String desc)
    {
      this.value = v;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
    
    public static bizSysCode indexOf(String value)
    {
      for (bizSysCode v :bizSysCode.values() ) {
        if (v.value().equals(value)) {
          return v;
        }
      }
      return null;
    }
  }
  
  public static enum subjectType
  {
    ASSETS(Integer.valueOf(0), "0 资产"),  PROFIT_AND_LOSS(Integer.valueOf(1), "1 损益"),  LIABILITIES(Integer.valueOf(2), "2 负债"),  OWNER_EQUITY(Integer.valueOf(4), "3 所有者权益");
    
    private Integer value;
    private String desc;
    
    private subjectType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum curBalType
  {
    UNCOMPARE(Integer.valueOf(0), "未比较"),  BALANCE(Integer.valueOf(1), "平衡"),  UNBALANCE(Integer.valueOf(2), "未平衡");
    
    private Integer value;
    private String desc;
    
    private curBalType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum BizType
  {
    BUSINESS("0", "业务"),  JOB("1", "JOB"),  RPC("2", "RPC"),  TASK("3", "TASK"),  OTHER("9", "其它");
    
    private String value;
    private String desc;
    
    private BizType(String value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum userRegistChannelType
  {
    DZ_APP("104", "手机APP"),  MAINSERVER("101", "主服务器后台"),  HISTORY_USER("999", "历史迁移用户");
    
    private String value;
    private String desc;
    
    private userRegistChannelType(String value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum PayType
  {
    THIRD_REALTIME_PAY(Integer.valueOf(1), "第三实时支付"),  BATCH_PAY(Integer.valueOf(2), "统付"),  ENTERPRISES_PAY(Integer.valueOf(3), "企业支付"),  EWALLET_PAY(Integer.valueOf(4), "电子钱包支付"),  PAY_FORANOTHER(Integer.valueOf(5), "代付"),  OFFLINE_CARD_PAY(Integer.valueOf(6), "线下卡"),  CASH_PAY(Integer.valueOf(7), "现金支付"),  OUT_OFFLINE_CARD_PAY(Integer.valueOf(8), "外部现金卡(外部线下卡)"),  IMPREST_PAY(Integer.valueOf(9), "预付款支付");
    
    private Integer value;
    private String desc;
    
    private PayType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum cardState
  {
    UN_ACTIVATE(Integer.valueOf(0), "未激活"),  ACTIVATE(Integer.valueOf(1), "激活"),  FROZEN(Integer.valueOf(2), "冻结"),  REPORT_LOSS(Integer.valueOf(3), "挂失"),  LOGOUT(Integer.valueOf(4), "注销"),  CARD_NOT_FOUND(Integer.valueOf(10), "卡不存在"),  CARD_TYPE_ERROR(Integer.valueOf(11), "注销");
    
    private Integer value;
    private String desc;
    
    private cardState(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
    
    public static cardState getCardState(Integer i)
    {
      switch (i.intValue())
      {
      case 0: 
        return UN_ACTIVATE;
      case 1: 
        return ACTIVATE;
      case 2: 
        return FROZEN;
      case 3: 
        return REPORT_LOSS;
      case 4: 
        return LOGOUT;
      case 10: 
        return CARD_NOT_FOUND;
      case 11: 
        return CARD_TYPE_ERROR;
      }
      return null;
    }
  }
  
  public static enum CardType
  {
    ONLINE_CARD("08", "08 虚拟卡"),  OFFLINE_CARD("06", "06 实体卡"),  IDENTITY_CARD("07", "07 身份认证卡");
    
    private String value;
    private String desc;
    
    private CardType(String value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
    
    public static CardType indexOf(String value)
    {
      for (CardType v : CardType.values()) {
        if (v.value().equals(value)) {
          return v;
        }
      }
      return null;
    }
  }
  
  public static enum entUserAllowOverQuota
  {
    YES(Integer.valueOf(1), "允许"),  NO(Integer.valueOf(0), "不允许");
    
    private Integer value;
    private String desc;
    
    private entUserAllowOverQuota(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum CardBIN
  {
    CARDBIN_188("188", "cardbin-188");
    
    private String value;
    private String desc;
    
    private CardBIN(String value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
    
    public static CardBIN indexOf(String value)
    {
      for (CardBIN v :CardBIN.values() ) {
        if (v.value().equals(value)) {
          return v;
        }
      }
      return null;
    }
  }
  
  public static enum SysState
  {
    NORMAL_RUNNING("1", "系统正常状态"),  DAY_CHANGING("2", "日切中"),  DAY_CHANGED("3", "日切完成"),  DAILY_ACCOUNTING("4", "日记账中"),  DAILY_ACCOUNTED("5", "日记账完成"),  CALCING("6", "试算平衡中");
    
    private String value;
    private String desc;
    
    private SysState(String value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum commonValid
  {
    VALID(Integer.valueOf(1), "1  有效"),  INVALID(Integer.valueOf(0), "0  无效 ");
    
    private Integer value;
    private String desc;
    
    private commonValid(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum gender
  {
    MALE("1", "1  男"),  FEMALE("0", "0  女 ");
    
    private String value;
    private String desc;
    
    private gender(String value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public String value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum accountTransferState
  {
    INIT(Integer.valueOf(0), "0  待审核"),  PASSED(Integer.valueOf(1), "1  审核通过 "),  REFUSE(Integer.valueOf(2), "2  审核拒绝 ");
    
    private Integer value;
    private String desc;
    
    private accountTransferState(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum accountAdjustType
  {
    ACCOUNT_TRANSGER(Integer.valueOf(1), "划拨"),  ACCOUNT_ADJUST(Integer.valueOf(2), "调账");
    
    private Integer value;
    private String desc;
    
    private accountAdjustType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum orderType
  {
    AFTER_PAYMENT(Integer.valueOf(0), "后付款"),  ADVANCE_PAYMENT(Integer.valueOf(1), "预付款");
    
    private Integer value;
    private String desc;
    
    private orderType(Integer value, String desc)
    {
      this.value = value;
      this.desc = desc;
    }
    
    public Integer value()
    {
      return this.value;
    }
    
    public String toString()
    {
      return this.value + ":" + this.desc;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
  }
  
  public static enum smsSendChannel
  {
    YI_MEI("YI_MEI", "亿美");
    
    private String key;
    private String value;
    
    private smsSendChannel(String key, String value)
    {
      this.key = key;
      this.value = value;
    }
    
    public static Map<String, Object> getSmsSendChannelList()
    {
      Map<String, Object> payChannelListMap = new LinkedHashMap();
      for (smsSendChannel c : values())
      {
        Map<String, String> payChannelListMapTemp = new LinkedHashMap();
        payChannelListMapTemp.put("smsChannel", c.getKey());
        payChannelListMapTemp.put("value", c.getValue());
        payChannelListMap.put(c.getKey(), payChannelListMapTemp);
      }
      return payChannelListMap;
    }
    
    public String getKey()
    {
      return this.key;
    }
    
    public String getValue()
    {
      return this.value;
    }
  }
  
  public static enum ThirdAccountType
  {
    TENCENT_WEIXIN("1", "微信"),  TENCENT_QQ("2", "QQ"),  SINA_WEIBO("3", "新浪微博"),  TENCENT_WEIBO("4", "腾讯微博");
    
    private String value;
    private String desc;
    
    private ThirdAccountType(String value, String desc)
    {
      this.desc = desc;
      this.value = value;
    }
    
    public static ThirdAccountType indexOf(String value)
    {
      for (ThirdAccountType v : ThirdAccountType.values()) {
        if (v.value().equals(value)) {
          return v;
        }
      }
      return null;
    }
    
    public String getDesc()
    {
      return this.desc;
    }
    
    public String value()
    {
      return this.value;
    }
  }
  
  public static final BigDecimal BIGDECIMAL_ZERO = new BigDecimal("0");
}
